//
//  xvEfznJLCFListDetailBmapCellEkyNlk.m
//  Jlcf_ios
//
//  Created by Ji on 2018/9/27.
//  Copyright © 2018 ski. All rights reserved.
//

#import "xvEfznJLCFListDetailBmapCellEkyNlk.h"

@interface xvEfznJLCFListDetailBmapCellEkyNlk ()

@property (nonatomic, strong) UILabel *GqCHXwprojectLabelNooxRs;//项目概况
//@property (nonatomic, strong) UILabel *raaojRprojectNameLabelgSqFPF;//项目名称
@property (nonatomic, strong) UILabel *fMIzarprojectAccountLabelcEQQGX;//项目金额
@property (nonatomic, strong) UILabel *hnRcVmtimeLabelncDSPi;//起息时间
@property (nonatomic, strong) UILabel *BdOYCqwayLabelITBGpm;//还款方式
@property (nonatomic, strong) UILabel *NVogeFriskLabelTKjWZB;//风险等级


@end

@implementation xvEfznJLCFListDetailBmapCellEkyNlk

- (void)reloadData
{
    
    
    
    
    if (self.VWtWqQdataModelcUgEkM) {
        UILabel  *labelOne = [UILabel labelWithText:@"项目介绍" textColor:QTZ_Gray153 font:FONT(15)];
        labelOne.left = 21;
        labelOne.top = 20;
        [labelOne sizeToFit];
        [self addSubview:labelOne];
        
        UILabel  *labelTwo = [UILabel labelWithText:@"项目名称：" textColor:QTZ_Gray153 font:FONT(13)];
        labelTwo.left = labelOne.left;
        labelTwo.top = labelOne.bottom+17;
        [labelOne sizeToFit];
        [self addSubview:labelTwo];
        
        UILabel  *labelThree = [UILabel labelWithText:@"项目总额：" textColor:QTZ_Gray153 font:FONT(13)];
        labelThree.left = labelTwo.left;
        labelThree.top = labelTwo.bottom+14;
        [labelThree sizeToFit];
        [self addSubview:labelThree];
        
        UILabel  *labelFour = [UILabel labelWithText:@"起息时间：" textColor:QTZ_Gray153 font:FONT(13)];
        labelFour.left = labelThree.left;
        labelFour.top = labelThree.bottom+14;
        [labelFour sizeToFit];
        [self addSubview:labelFour];
        
        UILabel  *labelFive = [UILabel labelWithText:@"还款方式：" textColor:QTZ_Gray153 font:FONT(13)];
        labelFive.left = labelFour.left;
        labelFive.top = labelFour.bottom+14;
        [labelFive sizeToFit];
        [self addSubview:labelFive];
        
        UILabel  *labelSix = [UILabel labelWithText:@"风险等级：" textColor:QTZ_Gray153 font:FONT(13)];
        labelSix.left = labelFive.left;
        labelSix.top = labelFive.bottom+14;
        [labelSix sizeToFit];
        [self addSubview:labelSix];
        
        
        if (!self.GqCHXwprojectLabelNooxRs) {
            self.GqCHXwprojectLabelNooxRs = [UILabel labelWithText:self.VWtWqQdataModelcUgEkM.name textColor:QTZ_Black font:FONT(13)];
            self.GqCHXwprojectLabelNooxRs.left = labelTwo.right+20;
            self.GqCHXwprojectLabelNooxRs.top=labelTwo.top;
            [self.GqCHXwprojectLabelNooxRs sizeToFit];
            
            [self addSubview:self.GqCHXwprojectLabelNooxRs];
        }
        
        if(!self.fMIzarprojectAccountLabelcEQQGX){
            self.fMIzarprojectAccountLabelcEQQGX = [UILabel new];
            self.fMIzarprojectAccountLabelcEQQGX.left = labelThree.right+20;
            self.fMIzarprojectAccountLabelcEQQGX.top = labelThree.top;
            
            
            [self addSubview:self.fMIzarprojectAccountLabelcEQQGX];
        }
        
        if (self.fMIzarprojectAccountLabelcEQQGX) {
            self.fMIzarprojectAccountLabelcEQQGX.text = [NSString stringWithFormat:@"%@元", self.VWtWqQdataModelcUgEkM.account];
            [self.fMIzarprojectAccountLabelcEQQGX sizeToFit];
            self.fMIzarprojectAccountLabelcEQQGX.font = FONT(13);
            self.fMIzarprojectAccountLabelcEQQGX.textColor = QTZ_Black;
        }
        
        
        
        if (!self.hnRcVmtimeLabelncDSPi) {
            self.hnRcVmtimeLabelncDSPi = [UILabel labelWithText:self.VWtWqQdataModelcUgEkM.interestDay textColor:QTZ_Black font:FONT(13)];
            self.hnRcVmtimeLabelncDSPi.top = labelFour.top;
            self.hnRcVmtimeLabelncDSPi.left = labelFour.right+20;
            
            [self.hnRcVmtimeLabelncDSPi sizeToFit];
            [self addSubview:self.hnRcVmtimeLabelncDSPi];
        }
        
        if (!self.BdOYCqwayLabelITBGpm) {
            self.BdOYCqwayLabelITBGpm = [UILabel labelWithText:self.VWtWqQdataModelcUgEkM.refundTyep textColor:QTZ_Black font:FONT(13)];
            self.BdOYCqwayLabelITBGpm.top = labelFive.top;
            self.BdOYCqwayLabelITBGpm.left = labelFive.right+20;
            [self.BdOYCqwayLabelITBGpm sizeToFit];
            [self addSubview:self.BdOYCqwayLabelITBGpm];
        }
        
        
        if (!self.NVogeFriskLabelTKjWZB) {
            self.NVogeFriskLabelTKjWZB = [UILabel new];
            self.NVogeFriskLabelTKjWZB.left = labelSix.right + 20;
            self.NVogeFriskLabelTKjWZB.top = labelSix.top;
            
            [self addSubview:self.NVogeFriskLabelTKjWZB];
        }
        
        if (self.NVogeFriskLabelTKjWZB) {
            NSInteger riskgrade =[self.VWtWqQdataModelcUgEkM.riskGrade integerValue];
            switch (riskgrade) {
                case 0:
                    self.NVogeFriskLabelTKjWZB.text =@"低风险";
                    break;
                    
                case 1:
                    self.NVogeFriskLabelTKjWZB.text = @"中低风险";
                    break;
                    
                case 2:
                    self.NVogeFriskLabelTKjWZB.text = @"中等风险";
                    break;
                    
                case 3:
                    self.NVogeFriskLabelTKjWZB.text = @"中高风险";
                    break;
                    
                case 4:
                    self.NVogeFriskLabelTKjWZB.text = @"高风险";
                    break;
                    
                default:
                    break;
            }
            
            self.NVogeFriskLabelTKjWZB.font = FONT(13);
            self.NVogeFriskLabelTKjWZB.textColor = QTZ_Black;
            [self.NVogeFriskLabelTKjWZB sizeToFit];
            
            
            
        }
    }
}

@end
